<template>
  <span v-html="status"></span>
</template>
<script>
export default {
  data() {
    return { status: '<font color="red">未知</font>' }
  },
  beforeMount() {
    switch (this.params.value) {
      case 1:
        this.status = '<font color="orange">受理</font>'
        break
      case 1:
        this.status = '<font color="green">确认</font>'
        break
      case 2:
        this.status = '<font color="blue">关闭</font>'
        break
      default:
        this.status = '打开'
        break
    }
  }
}
</script>
